chore(ci): auto-approve Risto's PRs as Carmen#23
Closed
ckivisild-elnora-ai wants to merge 2 commits into
Closed
Conversation
Adds .github/workflows/auto-approve-risto.yml. When Risto opens a PR and requests Carmen as a reviewer, generates a one-sentence approval in her voice via the Anthropic API (Haiku) and posts it as Carmen's review using CARMEN_REVIEW_PAT. Approval is attributed to ckivisild-elnora-ai (not github-actions[bot]) for SOC 2 / ISO 27001 audit trail. Workflow does NOT merge and does NOT delete the branch — explicit per Carmen's spec. Gating (both must hold or workflow no-ops): - requested_reviewer.login == 'ckivisild-elnora-ai' - pull_request.user.login == 'rjamul-elnora-ai' Required repo secrets (pre-set): - ANTHROPIC_API_KEY - CARMEN_REVIEW_PAT (fine-grained PAT, repo-scoped, expires 2027-05-23) Plan: ~/.claude/plans/serialized-splashing-twilight.md Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Lets us trigger the workflow manually against any PR number to validate the diff → AI → comment pipeline end-to-end. Dispatch path skips the actual approval post (dry-run only) so no stray approvals get left behind. The real review_requested path still posts approvals as normal. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Member
Author
|
Closing — workflow lives only on private repos. The auto-approval logic was visible to public, which we don't want for internal automation. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Auto-approves PRs Risto opens here when he requests Carmen's review. Posts a one-sentence approval in her voice (generated via Anthropic Haiku) attributed to
ckivisild-elnora-aifor SOC 2 / ISO 27001 audit trail. Does NOT merge, does NOT delete the branch.How it works
pull_request: types: [review_requested]requested_reviewer == ckivisild-elnora-ai && author == rjamul-elnora-ai(no-ops otherwise)CARMEN_REVIEW_PATRequired secrets (already configured)
CARMEN_REVIEW_PAT— fine-grained PAT on Carmen's account, repo-scoped, expires 2027-05-23ANTHROPIC_API_KEY— for the comment generationTest plan
Plan:
~/.claude/plans/serialized-splashing-twilight.md🤖 Generated with Claude Code